package src.chap08;

public class brainstorm {
    public static void main(String... args) {
        double average = 0.0;
        double sum = 0;

            for (int i = 1; i < args.length; i++) {
                sum += Integer.parseInt(args[i]);

                average = sum / (args.length - 1);

                if (i==args.length-1)
                    System.out.println("学号："+args[0]+" 学科：java"+" 平均成绩："+average);
            }

        }
    }


